<?php echo $this->render($this->includeDir . '/toolbar.php');?>
<?php 
	/*===============================================
	 * Start - Hien thi cac phan tu trong database 
	 *===============================================*/	
	$config = new Zendvn_Controller_Config(array('module'=>$this->arrParam['module'],
												'fileConfig'=>'user-group.ini'));
	$empty 			= '<em style="color:#ccc">Data is empty...</em>';
	$name 			= $this->Item['name'];
	$type 			= $this->Item['type'];
	$priority		= $this->Item['priority'];
	$avatar 		= $this->Item['avatar'];	
	if(!empty($avatar)){
		$avatarConfig 	= $config->getConfig('avatar');
		$avatarUrl		= $avatarConfig['thumbUrl'] . '/' . $this->Item['avatar'];
		$avatar 		= $this->cmsImage('avatar',$avatarUrl,array('width'=>'75px'));
	}
	
	$ranking 		= $this->Item['ranking'];
	if(!empty($ranking)){
		$rankingConfig 	= $config->getConfig('ranking');	
		$rankingUrl		= $rankingConfig['uploadUrl'] . '/' . $this->Item['ranking'];
		$ranking 		= $this->cmsImage('ranking',$rankingUrl,array('width'=>'75px'));
	}
	
	$options 		= array('No','Yes');	
	$group_acp 		= $options[$this->Item['group_acp']];

	$options 		= array('No','Yes');
	$group_default 	= $options[$this->Item['group_default']];
	
	$permission		= $this->Item['permission'];
	
	$status 		= $this->Item['status'];
	$ordering 		= $this->Item['ordering'];
	$created		= !empty($this->Item['created'])?date('m-d-Y H:i:s',strtotime($this->Item['created'])):$empty;
	$created_by 	= $this->Item['created_by'];
	$modified		= !empty($this->Item['modified'])?date('m-d-Y H:i:s',strtotime($this->Item['modified'])):$empty;
	$modified_by 	= $this->Item['modified_by'];
	//created	created_by	modified	modified_by
	$arrRow = array(
					array('label'=>'Group name','info'=>$name),
					array('label'=>'Avatar','info'=>$avatar),
					array('label'=>'Ranking','info'=>$ranking),
					array('label'=>'Group ACP','info'=>$group_acp),
					array('label'=>'Group type','info'=>$group_default),
					array('label'=>'Permission','info'=>$permission),
					array('label'=>'Created','info'=>$created),
					array('label'=>'Created by','info'=>$created_by),
					array('label'=>'Modified','info'=>$modified),
					array('label'=>'Modified by','info'=>$modified_by),
					array('label'=>'Status','info'=>$status),
					array('label'=>'Order','info'=>$ordering),
				
				);
?>
<div id="element-box">
	<div class="m">
		<div class="form-table">
            	<fieldset class="admin-fieldset">
                <legend class="admin-legend">Form Detail</legend>
            	<table width="100%" border="0">
                	<?php echo $this->partialLoop('row-info.php',$arrRow);?>
                </table>
                <div class="clr"></div>
                </fieldset>
            </div>
            <div class="clr"></div>
	</div>
</div>
